﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<volva.Models.Station>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Stofna Sjónvarpsstöð</h2>
    
 <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Nýskráning mistóks. Vinsamlegast lagið villurnar og reynið aftur.") %>
        <div>
                <div class="editor-label">
                    Nafn stöðvar
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.name, new { @class = "text" })%>
                    <%= Html.ValidationMessageFor(m => m.name) %>
                </div>
                
                <div class="editor-label">
                    Lýsing
                </div>
                <div class="editor-field">
                    <%= Html.TextAreaFor(m => m.description) %>
                    <%= Html.ValidationMessageFor(m => m.description) %>
                </div>
                
                <p>
                    <input class="btn" type="submit" value="Búa til stöð" />
                </p>
        </div>
    <% } %>    

</asp:Content>
